﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:nRoute="clr-namespace:nRoute.Controls;assembly=nRoute.Framework" 
    xmlns:local="clr-namespace:Officer2010.Infrastructure.Controls;assembly=Officer2010.Infrastructure"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
	xmlns:ee="http://schemas.microsoft.com/expression/2010/effects">
    
	<!-- CONTAINER STYLE, Note the target type -->
	<Style x:Key="OfficerContainerStyle" TargetType="nRoute:NavigationContainer">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="Foreground" Value="#FF000000"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Padding" Value="0,0,0,0"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="nRoute:NavigationContainer">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" 
                            Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                            OpacityMask="{TemplateBinding OpacityMask}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="NavigationStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="00:00:00" To="NavigationFailed"/>
                                    <VisualTransition From="NavigationFailed" GeneratedDuration="00:00:00"/>
                                    <VisualTransition From="Navigating" GeneratedDuration="0:0:0.4" To="Navigated">
                                    	<ei:ExtendedVisualStateManager.TransitionEffect>
                                    		<ee:WipeTransitionEffect FeatherAmount="0.5"/>
                                    	</ei:ExtendedVisualStateManager.TransitionEffect>
                                    	<VisualTransition.GeneratedEasingFunction>
                                    		<CircleEase EasingMode="EaseIn"/>
                                    	</VisualTransition.GeneratedEasingFunction>
                                    </VisualTransition>
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="UnNavigated"/>
                                <VisualState x:Name="Navigating">
                                    <Storyboard AutoReverse="False" BeginTime="00:00:00" RepeatBehavior="ForEver">
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="IndicatorBorder">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse01">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse12">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse11">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0.5"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse02">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse03">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse04">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse05">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse06">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse07">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse08">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse09">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.25"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ellipse10">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.9000000" Value="1"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.5"/>
                                            <EasingDoubleKeyFrame KeyTime="00:00:01.1000000" Value="0.25"/>
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Navigated"/>
                                <VisualState x:Name="NavigationFailed"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <VisualStateManager.CustomVisualStateManager>
                            <ei:ExtendedVisualStateManager/>
                        </VisualStateManager.CustomVisualStateManager>
                        <Grid>
                            <ContentPresenter Cursor="{TemplateBinding Cursor}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            <Border x:Name="IndicatorBorder" Background="#99000000" Visibility="Collapsed">
                                <Canvas x:Name="spinner_1" HorizontalAlignment="Center" Height="24" Width="24">
                                    <Ellipse x:Name="ellipse01" Fill="White" Height="4" Opacity="0" Canvas.Top="10" Width="4"/>
                                    <Ellipse x:Name="ellipse02" Fill="White" Height="4" Canvas.Left="1.33975" Opacity="0" Canvas.Top="5" Width="4"/>
                                    <Ellipse x:Name="ellipse03" Fill="White" Height="4" Canvas.Left="5" Opacity="0" Canvas.Top="1.4" Width="4"/>
                                    <Ellipse x:Name="ellipse04" Fill="White" Height="4" Canvas.Left="10" Opacity="0" Canvas.Top="0" Width="4"/>
                                    <Ellipse x:Name="ellipse05" Fill="White" Height="4" Canvas.Left="15" Opacity="0" Canvas.Top="1.4" Width="4"/>
                                    <Ellipse x:Name="ellipse06" Fill="White" Height="4" Canvas.Left="18.6603" Opacity="0" Canvas.Top="5" Width="4"/>
                                    <Ellipse x:Name="ellipse07" Fill="White" Height="4" Canvas.Left="20" Opacity="0" Canvas.Top="10" Width="4"/>
                                    <Ellipse x:Name="ellipse08" Fill="White" Height="4" Canvas.Left="18.7" Opacity="0" Canvas.Top="15" Width="4"/>
                                    <Ellipse x:Name="ellipse09" Fill="White" Height="4" Canvas.Left="15" Opacity="0" Canvas.Top="18.66025" Width="4"/>
                                    <Ellipse x:Name="ellipse10" Fill="White" Height="4" Canvas.Left="10" Opacity="0" Canvas.Top="20" Width="4"/>
                                    <Ellipse x:Name="ellipse11" Fill="White" Height="4" Canvas.Left="5" Opacity="0" Canvas.Top="18.66025" Width="4"/>
                                    <Ellipse x:Name="ellipse12" Fill="White" Height="4" Canvas.Left="1.4" Opacity="0" Canvas.Top="15" Width="4"/>
                                </Canvas>
                            </Border>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>